package com.learn.project2.model.bo.admin.coupon;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @description:
 * @author 岳子昂
 * @date 2022-01-08 01:37
 * @version 1.0
 */
@NoArgsConstructor
@Data
public class CouponCreateBO {

    private String name;
    private String desc;
    private String tag;
    private String total;
    private String discount;
    private String min;
    private String limit;
    private Short type;
    private Short status;
    private Short goodsType;
    private Integer[] goodsValue;
    private Short timeType;
    private String days;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private List<CouponGoodsListBean> couponGoodsList;

    @NoArgsConstructor
    @Data
    public static class CouponGoodsListBean {
        private Integer goodsId;
        private String goodsName;
        private String goodsSn;
    }
}
